<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "user_poker".
 *
 * @property integer $poker_id
 * @property integer $user_id
 * @property integer $user_agent_id
 * @property string $table_id
 * @property string $poker_name
 * @property integer $score
 * @property integer $in_score
 * @property integer $out_score
 * @property string $ts
 * @property integer $end_score
 * @property integer $club_id
 */
class UserPoker extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'user_poker';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'user_agent_id', 'score', 'in_score', 'out_score', 'end_score','club_id'], 'integer'],
            [['ts'], 'safe'],
            [['table_id', 'poker_name'], 'string', 'max' => 10],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'poker_id' => 'Poker ID',
            'user_id' => '用户id',
            'user_agent_id' => '代理人id',
            'table_id' => '桌号',
            'poker_name' => '德扑圈昵称',
            'score' => '成绩',
            'in_score' => '客人结算',
            'out_score' => '反水',
            'ts' => '时间',
            'end_score' => '最终结算',
            'club_id' => '所属俱乐部',
        ];
    }
}
